file(GLOB_RECURSE _CURRENT_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc")
set_property(SOURCE ${_CURRENT_SRC_FILES} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_MD)

set(DATASET_ENGINE_DATASETOPS_MAPOP_SRC_FILES
  map_op.cc
  cpu_map_job.cc
  gpu_map_job.cc
  )

if(NOT BUILD_LITE AND ENABLE_D)
set(DATASET_ENGINE_DATASETOPS_MAPOP_SRC_FILES
  ${DATASET_ENGINE_DATASETOPS_MAPOP_SRC_FILES}
  # ascend910b
  npu_map_job.cc
  )
endif()

add_library(engine-datasetops-mapop OBJECT ${DATASET_ENGINE_DATASETOPS_MAPOP_SRC_FILES})
